package cn.wolfcode.wolf2w.business.service;


import cn.wolfcode.wolf2w.business.api.domain.Question;
import cn.wolfcode.wolf2w.business.query.QuestionQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 问答Service接口
 * 
 * @author zhuyaohua
 * @date 2024-10-01
 */
public interface IQuestionService extends IService<Question>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<Question> queryPage(QuestionQuery qo);

    Question selectById(Long id);

    IPage<Question> queryPageSelf(QuestionQuery qo);

    boolean insert(Question question);
}
